package com.springboot.springboot2.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName:
 * @author: CKC
 * @DateTime: 2021/1/28 22:29
 *
 *
 *
 */
@Controller
public class ViewControllerTest {
    
    @GetMapping("/xxx")
    public String xxx(Model model){
        model.addAttribute("msg","Hello ~!");
        model.addAttribute("link", "http://www.baidu.com");
        
        return "success";
    }
}
